package com.yangcb.workrecord.concurrent.dao;

import com.yangcb.workrecord.concurrent.domain.Systemlog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * ${DESCRIPTION}
 *
 * @author yangcb
 * @create 2017-09-28 17:25
 **/
@Repository
public class SystemLogDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public int add(Systemlog systemlog){
        return jdbcTemplate.update("insert into syslog(logdescribe,create_date) VALUES (?,?)",systemlog.getLogdescribe(),systemlog.getTime());
    }

}
